package com.zhouyu.configproxy;

import com.zhouyu.service.OrderService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = true)
public class ConfigurationProxy {

	@Bean
	public OrderService OrderService(){  //增强代理配置类对象，每次调用这个方法拿到的bean实际上是一样的
		return new OrderService();
	}

}
